package startup;

import cn.jas.api.UserManager;
import cn.jas.entity.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext  context=new ClassPathXmlApplicationContext("applicationContext.xml");
         UserManager  userManager= context.getBean(UserManager.class);
         User user =userManager.findUserById(1);
         System.out.println(user.getInfo());

    }

}
